package models;

import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created with IntelliJ IDEA.
 * User: Andrio
 * Date: 7.4.2013
 * Time: 13:01
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class Highscores extends Model {

    @Id
    public int id;
    public String name;
    public int score;

    public Highscores(String name, int score) {
        this.name = name;
        this.score = score;
    }

    public static Model.Finder<Integer,Highscores> find = new Model.Finder(Integer.class, Highscores.class);
}
